x11: Fix a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 06:31:40 +0000 (01:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 06:31:40 +0000 (01:31 -0500)
We ref the content formats here, so we better unref it
when done.

gdk/x11/gdkdrag-x11.c

index c0706cbe749493556d44413bb3bd4a44ecf31554..00e9a104ab045b39239fa9168e9c1f3185965d11 100644 (file)
@@ -1095,6 +1095,8 @@ xdnd_send_enter (GdkX11Drag *drag_x11)
     }
 
   xdnd_send_xevent (drag_x11, &xev);
+
+  gdk_content_formats_unref (formats);
 }
 
 static void